<script type="text/javascript" >
//<![CDATA[
$(document).ready(function() {
	$("#ezbbs_search_form").validate({
	});
});

//]]>
</script>

<?php if ($_set['artcat_flag']) { ?>
<form name="ezbbs_category_form" method="get" action="<?=$_SERVER['PHP_SELF']?>">
<input type="hidden" name="job" value="<?=$job?>" />
<input type="hidden" name="subjob" value="<?=$subjob?>" />
<?php foreach ($paras as $k => $v) { ?>
  <?php if ($k != 'artcat') { ?><input type="hidden" name="<?=$k?>" value="<?=$v?>" /><?php } ?>
<?php } ?>
<?php } ?>

<table cellspacing="0" border="0" id="layer_board_list" summary="<?=$_set['name']?> 게시물들 목록">
<caption>
<?php if ($_set['artcat_flag']) { ?>
<span class="form_css">
<label for="artcat" style="font-weight:bold;"><?=$_lang['category']?> </label><?=$Html->select_form('artcat',array(""=>"전체")+$category_list, $artcat, 'ebcfac_id', 'ebcfac_pname')?> <input type="image" src="<?=$App->_url_board?>/skin/default/images/<?=strtolower($_set['lang'])?>/search_btn.gif" style="vertical-align:middle;" alt="분류검색" />
</span>
<?php } ?>
<?php if ($g_keyword) { ?><?=$_lang['s_num']?> <?=number_format($Paging->_search_num)?><?=$_lang['num']?> : <?php } ?><?=$_lang['t_num']?> <strong><?=number_format($Paging->_total_num)?></strong><?=$_lang['num']?> ▒ <?=$_lang['current']?> <?=number_format($Paging->_current_page)?><?=$_lang['page']?> : <?=$_lang['total']?> <?=number_format($Paging->_total_page)?><?=$_lang['page']?> <?php if ($_set['rss_flag']) { ?> <a href="/ezbbs/index.php?job=rss&amp;ebcf_id=<?=$ebcf_id?>" target='_blank'>[RSS]</a><?php } ?></caption>
<tr class="header">
	<?php if ($_print['no']) { ?><th scope="col" class="no"><?=$_lang['l_no']?></th><?php } ?>
	<?php if ($_set['artcat_flag'] && $_set['artcat_view_flag']) { ?><th scope="col" class="category"><?=$_lang['category']?></th><?php } ?>
	<th scope="col" class="subject"><?=$_lang['subject']?></th>
	<?php if ($_print['name']) { ?><th scope="col" class="name"><?=$_lang['name']?></th><?php } ?>
	<?php if ($_print['file']) { ?><th scope="col" class="file" ><?=$_lang['file']?></th><?php } ?>
	<?php if ($_print['cdate']) { ?><th scope="col" class="date"><?=$_lang['cdate']?></th><?php } ?>
	<?php if ($_print['cnt']) { ?><th scope="col" class="count"><?=$_lang['cnt']?></th><?php } ?>
	<th scope="col" class="header_right"></th>
</tr>
<?php if (count($current_list)) { ?>
	<?php foreach ($current_list as $k => $v) { ?>
	<tr>
		<?php if ($_print['no']) { ?><td><?php if ($v['eb_notice_flag']) { ?><img src="<?=$App->_url_board?>/skin/default/images/<?=strtolower($_set['lang'])?>/notice.gif" alt="" /><?php } else { ?><?php if ($v['eb_thread'] == 'A') { ?><?=$v['eb_family_seq']?><?php } ?><?php } ?></td><?php } ?>
		<?php if ($_set['artcat_flag'] && $_set['artcat_view_flag']) { ?><td><?=$v['category']?></td><?php } ?>
		<td class='list_subject'>
		<?php if($is_self) { ?>[<?=$v['ebcf_pname']?>] <?php } ?>
		<?php if ($v['eb_thread'] != 'A') { ?><img src="<?=$App->_url_board?>/skin/default/images/reply.gif" alt="" /><?php } ?>
		<?=str_repeat('&nbsp;&nbsp;&nbsp;', strlen($v['eb_thread']) - 1)?><a href="<?=$_SERVER['PHP_SELF']?>?job=detail&amp;<?=http_build_query($paras, '', '&amp;')?>&amp;eb_seq=<?=$v['eb_seq']?>" <?php if ($v['eb_notice_flag']) { ?>style="color:red"<?php } ?> title="<?=$v['eb_subject']?>"><?=$String->cut_string($v['eb_subject'],0,55)?></a>
		<?php if ($v['reply']) { ?>(<?=$v['reply']?>)<?php } ?>
		<?php if ($v['new']) { ?><img src="<?=$App->_url_board?>/skin/default/images/new.gif" vspace="1" alt="" /><?php } ?>
		<?php if ($v['hot']) { ?><img src="<?=$App->_url_board?>/skin/default/images/hot.gif" vspace="1" alt="" /><?php } ?>
		<?php if ($_set['lock_flag'] && $v['eb_lock_flag']) { ?><img src="<?=$App->_url_board?>/skin/default/images/lock_<?=$v['eb_lock_flag']?>.gif" alt="" /><?php } ?>
		</td>
		<?php if ($_print['name']) { ?><td style="padding:0px 5px;width:75px;line-height:15px"><?=$v['eb_name']?></td><?php } ?>
		<?php if ($_print['file']) { ?><td><?php if (count($v['files'])) { ?><a href="<?=$App->_url_board?>/index.php?job=download&amp;ebcf_id=<?=$ebcf_id?>&amp;eb_seq=<?=$v['files'][0]['ebfi_ebseq']?>&amp;ebfi_no=<?=$v['files'][0]['ebfi_no']?>"><?=$v['files'][0]['icon']?></a><?php } else { ?>&nbsp;<?php } ?></td><?php } ?>
		<?php if ($_print['cdate']) { ?><td><?=$v['eb_ctime']?></td><?php } ?>
		<?php if ($_print['cnt']) { ?><td><?=number_format($v['eb_cnt'])?></td><?php } ?>
		<td></td>
	</tr>
	<?php } ?>
<?php } ?>
</table>
<?php if ($_set['artcat_flag']) { ?>
</form>
<?php } ?>

<?php if (!count($current_list)) { ?>
<div class="empty"><?php if (empty($g_keyword)) { ?><?=$_lang['not_t_num']?><?php } else { ?><?=$_lang['not_s_num']?><?php } ?></div>

<?php } ?>
<div id="lay_board_paging"><?=$Paging->icon_default('/icon/paging/white/', array('partition' => ' | ', 'self' => "<span>%d</span>"))?></div>
<div id="lay_board_search">
	<?php if (count($current_column_list)) { ?>
	<form name="ezbbs_search_form" id="ezbbs_search_form" method="get" action="<?=$_SERVER['PHP_SELF']?>">
	<input type="hidden" name="job" value="<?=$job?>" />
	<input type="hidden" name="subjob" value="<?=$subjob?>" />
	<?php foreach ($paras as $k => $v) { ?>
	  <?php if ($k != 'column' && $k != 'keyword') { ?><input type="hidden" name="<?=$k?>" value="<?=$v?>" /><?php } ?>
	<?php } ?>
	<ul class="search_form">
	<li><label for="search" class="lay_none">검색항목</label><select name="column" id="search">
		<?php if (in_array('name', $current_column_list)) { ?><option value="name"<?php if ($column == 'name') { ?> selected="selected"<?php } ?>><?=$_lang['name']?></option><?php } ?>
		<?php if (in_array('subject', $current_column_list)) { ?><option value="subject"<?php if ($column == 'subject') { ?> selected="selected"<?php } ?>><?=$_lang['subject']?></option><?php } ?>
		<?php if (in_array('txt', $current_column_list)) { ?><option value="txt"<?php if ($column == 'txt') { ?> selected="selected"<?php } ?>><?=$_lang['text']?></option><?php } ?>
		</select></li>
	<li><label for="g_keyword" class="lay_none">검색어</label><input id="g_keyword" name="g_keyword" class="required keyword" type="text" value="<?=$g_keyword?>" title="검색어를 입력해주세요" /></li>
	<li><input id="btn_search" type="image" src="<?=$App->_url_board?>/skin/default/images/<?=strtolower($_set['lang'])?>/search_btn.gif" alt="검색" /></li>
	</ul>

	<?php } ?>
	<?php if ($_btn['write']) { ?>
	<ul id="lay_board_list_util">
	<li><a href="<?=$_SERVER['PHP_SELF']?>?job=insert&amp;<?=http_build_query($paras, '', '&amp;')?>"><img src="<?=$App->_url_board?>/skin/default/images/kor/btn_write.gif" alt="<?=$_lang['write']?>" /></a></li>
	</ul>
	<?php } else { ?>
	<div id="lay_board_list_util"></div>
	<?php } ?>
	</form>
</div>

